import server from "./server";
export default {

    // 检查是否已经是粉丝
    async checkIsFan(followedId) {
        return await server({
            method: "get",
            url: "/fan/getIsFollowed",
            params: {
                followedId
            }
        })
    },

    // 关注
    async follow(followedId) {
        return await server({
            method: "post",
            params: {
                followedId
            },
            url: "/fan/followAction"
        })
    },

    // 取消关注
    async cancleFollow(followedId) {
        return await server({
            method: "post",
            params: {
                followedId
            },
            url: "/fan/cancleFollowAction"
        })
    },

    // 获取粉丝列表
    async getFansList() {
        return await server({
            method: "get",
            url: "/fan/getFanList"
        })
    },
    //  获取关注列表
    async getFollowedList() {
        return await server({
            method: "get",
            url: "/fan/getFollowedList"
        })
    }
}